<!--
 * @Description: 
 * @Author: Pengfei
 * @Date: 2021-09-26 18:04:24
 * @LastEditTime: 2021-09-28 16:34:07
 * @LastEditors: Pengfei
-->
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
  import Layout from '@l/index.vue'
  import { useRoute } from 'vue-router'
  const route = useRoute()
</script>

<template>
  <div>
    <router-view v-if="route.path === '/login'"/>
    <Layout v-else/>
  </div>
</template>

<style>
</style>
